package com.gc.server.service;

import com.gc.server.entity.BookEntity;
import com.gc.server.vo.BookVo;
import com.yf.service.BaseService;
import java.io.InputStream;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

import org.springframework.web.multipart.MultipartFile;

/**
 * 绘本Service接口
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Tue Oct 27 10:38:33 CST 2020
 */
public interface BookService extends BaseService<BookEntity> {

    /************自动生成**************/
    List<BookVo> findVo(BookVo vo);

        BookVo getVo(Long id);

     int updateVo(BookVo vo);

       int saveVo(BookVo vo);

    void downLoad(HttpServletResponse response, List<BookVo> list);

    void upload(InputStream file);



    /***********BACK***********/




    /***********API***********/
    List<BookEntity> findByType(Integer type);


    void vote(Long userId, Long bookId);
}
